#!/bin/bash
index_list=("standard_doctor_search" "article_keywords" "article_sentences" "doctor_search" "standard_article_search" ".apm-agent-configuration" "collect_article" "community_search" "medic_courses" ".kibana_1" "article" "patient_search" ".apm-custom-link" ".kibana-event-log-7.8.1-000008" "standard_community_search" ".kibana_task_manager_1" ".kibana-event-log-7.8.1-000009" "standard_case_search" ".kibana-event-log-7.8.1-000010" "standard_keyword_search" ".kibana-event-log-7.8.1-000011" "article_collection")

for index in "${index_list[@]}"; do
    curl -X POST http://10.200.0.153:9200/$index/_delete_by_query -H 'Content-Type: application/json' -d '{ "query": { "match_all": {} } }'
    echo "  正在删除："$index
done
